const arr=[1,2,3,4,5]
simpleForOf(arr)
function simpleForOf(iterable){
    let iterator=iterable[Symbol.iterator]()
    while(true){
        let {value,done}=iterator.next()
        if(done){
            break
        }
        console.log(value)
    }
}
